package com.tsk.example.condition;

import org.springframework.context.annotation.Condition;
import org.springframework.context.annotation.ConditionContext;
import org.springframework.core.type.AnnotatedTypeMetadata;

/**
 * @author: huangjiazhen
 * @create: 2023/1/11 18:09
 * @description: 真正的条件逻辑处理类
 **/
public class TestOnClassCondition implements Condition {

    @Override
    public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
        System.out.println("-------" + this.getClass().getName());
        return true;
    }
}
